package com.javasm.crm.mapper.goodsmapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javasm.crm.domin.entity.productEntity.GoodsSupplier;
import com.javasm.crm.domin.entity.productEntity.ProductVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsSupplierMapper extends BaseMapper<GoodsSupplier> {
    @Select("select * from goods_supplier"+" ${ew.customSqlSegment}")
    List<GoodsSupplier> queryall(Page<GoodsSupplier> pagination, @Param(Constants.WRAPPER) QueryWrapper<GoodsSupplier> exampleQueryWrapper);

}